Sequence grabber components use a number of functions to establish the environment for grabbing or previewing digitized data. This section describes the channel component functions that allow the sequence grabber component to establish the environment for recording or previewing captured data.
The sequence grabber component uses the SGInitChannel function to initialize your channel prior to a record or preview operation.
The SGSetGWorld function allows the sequence grabber component to assign a graphics world to your component.
A sequence grabber component calls the SGInitChannel function to initialize a sequence grabber channel component. Your component should perform its initialization processing here, rather than in response to the Component Manager's open request. The initialization processing may include allocating memory or checking for the availability of special-purpose hardware or software.
pascal ComponentResult SGInitChannel (SGChannel c,
SeqGrabComponent owner);
If your component cannot gain access to the resources or equipment it needs to function properly, you should return a nonzero result code. If you return a nonzero result, the sequence grabber component closes its connection to your component and reports the error to the calling application.
A sequence grabber component calls the SGSetGWorld function to establish the display environment for your channel component.
pascal ComponentResult SGSetGWorld (SeqGrabComponent s,
CGrafPtr gp, GDHandle gd);